package com.imti.mall.order.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.mall.model.user.pojo.UmsMember;
import com.imti.mall.order.mapper.MemberMapper;
import com.imti.mall.order.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, UmsMember> implements MemberService {

    @Autowired
    private MemberMapper memberMapper;

    @Override
    public UmsMember umsMember(Long id) {
        return getById(id);
    }

    @Override
    public int updateIntegrationById(Long memberId, Integer integration) {
        return memberMapper.updateIntegrationById(memberId,integration);
    }
}
